<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>innisfree官方网站</title>
    <link rel="stylesheet" href="css/reset.css">
    <link rel="stylesheet" href="css/listpage.css">
    <link rel="stylesheet" href="css/swiper-bundle.min.css">
    <link rel="stylesheet" href="font/iconfont.css">
    <link rel="icon" href="./img/OIP-C.jpg">
</head>

<body>
    <header>
        <div class="w">
            <a href="#" style="padding:0px 10px"><img src="img/logo_2ebdcae.png" alt="" style="width:164px"></a>
            <div class="login">
                Hey,&nbsp;&nbsp;&nbsp;登录&nbsp;&nbsp;&nbsp;<span style="color: gray;">注册</span>
                <p class="down">
                    <span>Hey</span>
                    <a href="./login.html" class="dl">登陆</a>
                    <a href="./register.html" class="zc">注册</a>
                    <a href="#" class="address">附近暂无门店</a>
                </p>
            </div>
            <input type="text" class="txt1" placeholder="第四代小黑瓶">
            <img src="img/www.innisfree.cn_(1)fdj_03.png" alt="" class="small" style="width:24px">
            <ul>
                <li><a href="#">购物</a></li>
                <li><a href="#">热门活动</a></li>
                <li><a href="#">发现</a></li>
                <li><a href="#">关于我们</a></li>
            </ul>
            <div class="box1">
                <div class="inside">
                    <h5>热门搜索</h5>
                    <ul class="ul2">
                        <li><a href="#" style="width:90px;display:block;">第四代小绿瓶</a></li>
                        <li><a href="#" style="margin-left:15px;">小绿瓶</a></li>
                        <li><a href="#">限定散粉</a></li>
                        <li><a href="#">007精华</a></li>
                    </ul>
                    <ol>
                        <li><a href="#" style="width:70px;">美白橘光瓶</a></li>
                        <li><a href="#">面膜</a></li>
                        <li><a href="#">洁面</a></li>
                        <li><a href="#">红茶</a></li>
                        <li><a href="#">蓝莓</a></li>
                    </ol>
                </div>
            </div>
        </div>

    </header>
    <!-- 广告区域 -->
    <div class="banner">
        <ul>
            <li class="li1">全部产品分类</li>
            <li>
                <menu>
                    <div class="outside">
                        <div class="product"
                            style="text-align:center;font-size:18px;color:#024137;margin-left:-10px;margin-top:20px;">
                            产品类别</div>
                        <div class="list1">
                            <div class="box1">
                                <span></span>
                                <p>
                                    <!-- <a href="#">护肤水/</a>
                                    <a href="#">乳液/</a>
                                    <a href="#">精华液/</a>
                                    <a href="#">面霜/</a>
                                    <a href="#">眼霜/</a>
                                    <a href="#">喷雾/</a>
                                    <a href="#">唇部护理</a> -->
                                </p>
                            </div>
                            <div class="box1">
                                <span></span>
                                <p>
                                    <!-- <a href="#">护肤水/</a>
                                    <a href="#">乳液/</a>
                                    <a href="#">精华液/</a>
                                    <a href="#">面霜/</a>
                                    <a href="#">眼霜/</a>
                                    <a href="#">喷雾/</a>
                                    <a href="#">唇部护理</a> -->
                                </p>
                            </div>
                            <div class="box1">
                            <span></span>
                            <p>
                            <!-- <a href="#">护肤水/</a>
                                    <a href="#">乳液/</a>
                                    <a href="#">精华液/</a>
                                    <a href="#">面霜/</a>
                                    <a href="#">眼霜/</a>
                                    <a href="#">喷雾/</a>
                                    <a href="#">唇部护理/</a> -->
                            </p>
                            </div>

                        </div>
                        <img src="img/list1pic.jpg" alt="">
                    </div>
                </menu>
                <div class="iconfont icon-twitter"></div>
                <h4>
                    <p>产品类别</p>
                    <span><a href="#">基础护理/</a></span>
                    <span><a href="#">洁面与卸妆</a></span>
                </h4>

            </li>
            <li>
                <div class="iconfont icon-dribbble"></div>
                <h4>
                    <p>护肤系列</p>
                    <span><a href="#">基础护理/</a></span>
                    <span><a href="#">洁面与卸妆</a></span>
                </h4>
            </li>
            <li>
                <div class="menu1">
                    <h6>畅销产品</h6>
                    <img src="img/hotsale.jpg" alt="">
                </div>
                <div class="iconfont icon-shoucang"></div>
                <h4>
                    <p>畅销产品</p>
                </h4>
            </li>
            <li>
                <div class="menu2">
                    <h6>人气特卖</h6>
                    <img src="img/cz2fadd082e4c409634f68a9039a.jpg" alt="">
                </div>
                <div class="iconfont icon-pingfen"></div>
                <h4>
                    <p>特惠专区</p>
                </h4>
            </li>
        </ul>

        <div class="swiper-container s1">
            <div class="swiper-wrapper">
                <div class="swiper-slide"><img src="img/banner1.jpg" alt=""></div>
                <div class="swiper-slide"><img src="img/banner2.jpg" alt=""></div>
                <div class="swiper-slide"><img src="img/banner3.jpg" alt=""></div>
                <div class="swiper-slide"><img src="img/banner4.jpg" alt=""></div>
                <div class="swiper-slide"><img src="img/banner5.jpg" alt=""></div>
            </div>
            <!-- 如果需要分页器 -->
            <div class="swiper-pagination"></div>
        </div>
        <!-- 回顶 -->
        <div id="backtop">
            <img src="img/icon_top_b872f90.png" alt="">
        </div>
        <!-- 客服 -->
        <a href="" class="service">
            <img src="img/icon_serve_0c1ed9a.png" alt="">
        </a>
    </div>
    <!-- blank -->
    <div class="blank"></div>
    <!-- banner2 -->
    <div class="banner2">
        <div class="w">
            <img src="img/banner22.jpg" alt="">
        </div>
    </div>
    <!-- swiper2 -->
    <div class="swiper2">
        <div class="w">
            <div class="sw2">
                <div class="swiper-container s2">
                    <div class="swiper-wrapper">
                        <div class="swiper-slide sl2">
                            <div class="floor1">
                                <a href="#" class="a1"><img src="img/small1.jpg" alt="" style="width:190px;"></a>
                                <p style="font-size: 13px;margin-top:15px;"><a href="#"
                                        style="color:#000;">蓝莓平衡保湿套装Superfood
                                    </a></p>
                                <div class="price"><span style="font-size:12px">￥</span>60</div>
                            </div>
                        </div>
                        <div class="swiper-slide sl2">
                            <div class="floor1">
                                <a href="#" class="a1"><img src="img/s1.jpg" alt="" style="width:190px;"></a>
                                <p style="font-size: 13px;margin-top:15px;"><a href="#"
                                        style="color:#000;">敏肌专研乳酸菌氨基酸洁面慕斯
                                    </a></p>
                                <div class="price"><span style="font-size:12px">￥</span>159</div>
                            </div>
                        </div>
                        <div class="swiper-slide sl2">
                            <div class="floor1">
                                <a href="#" class="a1"><img src="img/s2.jpg" alt="" style="width:190px;"></a>
                                <p style="font-size: 13px;margin-top:15px;"><a href="#" style="color:#000;">迷你修护面膜多款可选
                                    </a></p>
                                <div class="price"><span style="font-size:12px">￥</span>99</div>
                            </div>
                        </div>
                        <div class="swiper-slide sl2">
                            <div class="floor1">
                                <a href="#" class="a1"><img src="img/s7.jpg" alt="" style="width:190px;"></a>
                                <p style="font-size: 13px;margin-top:15px;"><a href="#" style="color:#000;">红茶青春焕活悦享护肤套装
                                    </a></p>
                                <div class="price"><span style="font-size:12px">￥</span>219</div>
                            </div>
                        </div>
                        <div class="swiper-slide sl2">
                            <div class="floor1">
                                <a href="#" class="a1"><img src="img/s8.jpg" alt="" style="width:190px;"></a>
                                <p style="font-size: 13px;margin-top:15px;"><a href="#"
                                        style="color:#000;">悦诗风吟绽放芍约系列-限量版立体腮红膏
                                    </a></p>
                                <div class="price"><span style="font-size:12px">￥</span>89</div>
                            </div>
                        </div>
                        <div class="swiper-slide sl2">
                            <div class="floor1">
                                <a href="#" class="a1"><img src="img/s9.jpg" alt="" style="width:190px;"></a>
                                <p style="font-size: 13px;margin-top:15px;"><a href="#" style="color:#000;">A白瓶*视黄醇修颜精华液
                                    </a></p>
                                <div class="price"><span style="font-size:12px">￥</span>149</div>
                            </div>
                        </div>
                    </div>
                    <!-- Add Pagination -->
                    <div class="swiper-pagination"></div>
                    <!-- Add Arrows -->
                    <!-- <div class="swiper-button-next"></div>
                    <div class="swiper-button-prev"></div> -->
                </div>
            </div>
            <span><img src="img/4f4b2bbe9fdd7192ee453d1e2e.jpg" alt="" style="box-shadow:1px 1px 5px gray;"></span>
        </div>
    </div>
    <div class="banner2">
        <div class="w">
            <img src="img/bannerbrown.jpg" alt="">
        </div>
    </div>
    <!-- swiper -->
    <div class="swiper2">
        <div class="w">
            <div class="sw2">
                <div class="swiper-container s2">
                    <div class="swiper-wrapper">
                        <div class="swiper-slide sl2">
                            <div class="floor1">
                                <a href="#" class="a1"><img src="img/zong1.jpg" alt="" style="width:190px;"></a>
                                <p style="font-size: 13px;margin-top:15px;"><a href="#"
                                        style="color:#000;">蓝莓平衡保湿套装Superfood
                                    </a></p>
                                <div class="price"><span style="font-size:12px">￥</span>88</div>
                            </div>
                        </div>
                        <div class="swiper-slide sl2">
                            <div class="floor1">
                                <a href="#" class="a1"><img src="img/zong2.jpg" alt="" style="width:190px;"></a>
                                <p style="font-size: 13px;margin-top:15px;"><a href="#"
                                        style="color:#000;">敏肌专研乳酸菌氨基酸洁面慕斯
                                    </a></p>
                                <div class="price"><span style="font-size:12px">￥</span>169</div>
                            </div>
                        </div>
                        <div class="swiper-slide sl2">
                            <div class="floor1">
                                <a href="#" class="a1"><img src="img/zong3.png" alt="" style="width:190px;"></a>
                                <p style="font-size: 13px;margin-top:15px;"><a href="#" style="color:#000;">迷你修护面膜多款可选
                                    </a></p>
                                <div class="price"><span style="font-size:12px">￥</span>86</div>
                            </div>
                        </div>
                        <div class="swiper-slide sl2">
                            <div class="floor1">
                                <a href="#" class="a1"><img src="img/zong4.png " alt="" style="width:190px;"></a>
                                <p style="font-size: 13px;margin-top:15px;"><a href="#" style="color:#000;">红茶青春焕活悦享护肤套装
                                    </a></p>
                                <div class="price"><span style="font-size:12px">￥</span>79</div>
                            </div>
                        </div>
                        <div class="swiper-slide sl2">
                            <div class="floor1">
                                <a href="#" class="a1"><img src="img/zong5.jpg" alt="" style="width:190px;"></a>
                                <p style="font-size: 13px;margin-top:15px;"><a href="#"
                                        style="color:#000;">悦诗风吟绽放芍约系列-限量版立体腮红膏
                                    </a></p>
                                <div class="price"><span style="font-size:12px">￥</span>299</div>
                            </div>
                        </div>
                        <div class="swiper-slide sl2">
                            <div class="floor1">
                                <a href="#" class="a1"><img src="img/zong5.jpg" alt="" style="width:190px;"></a>
                                <p style="font-size: 13px;margin-top:15px;"><a href="#" style="color:#000;">A白瓶*视黄醇修颜精华液
                                    </a></p>
                                <div class="price"><span style="font-size:12px">￥</span>59</div>
                            </div>
                        </div>
                    </div>
                    <!-- Add Pagination -->
                    <div class="swiper-pagination"></div>
                    <!-- Add Arrows -->
                    <!-- <div class="swiper-button-next"></div>
                    <div class="swiper-button-prev"></div> -->
                </div>
            </div>
            <span><img src="img/redtea.jpg" alt="" style="box-shadow:1px 1px 5px gray;"></span>
        </div>
    </div>
    <div class="banner2">
        <div class="w">
            <img src="img/bannerlast.jpg" alt="">
        </div>
    </div>
    <!-- swiper -->
    <div class="swiper2">
        <div class="w">
            <div class="sw2">
                <div class="swiper-container s2">
                    <div class="swiper-wrapper">
                        <div class="swiper-slide sl2">
                            <div class="floor1">
                                <a href="#" class="a1"><img src="img/green1.jpg" alt="" style="width:190px;"></a>
                                <p style="font-size: 13px;margin-top:15px;"><a href="#"
                                        style="color:#000;">[全新升级]悦诗风吟绿茶籽精萃水分肌底精华露
                                    </a></p>
                                <div class="price"><span style="font-size:12px">￥</span>289</div>
                            </div>
                        </div>
                        <div class="swiper-slide sl2">
                            <div class="floor1">
                                <a href="#" class="a1"><img src="img/green2.jpg" alt="" style="width:190px;"></a>
                                <p style="font-size: 13px;margin-top:15px;"><a href="#"
                                        style="color:#000;">[10周年限量]绿茶籽肌活护肤尊享套装
                                    </a></p>
                                <div class="price"><span style="font-size:12px">￥</span>66</div>
                            </div>
                        </div>
                        <div class="swiper-slide sl2">
                            <div class="floor1">
                                <a href="#" class="a1"><img src="img/green3.jpg" alt="" style="width:190px;"></a>
                                <p style="font-size: 13px;margin-top:15px;"><a href="#"
                                        style="color:#000;">绿茶精萃平衡柔肤水补水保湿
                                    </a></p>
                                <div class="price"><span style="font-size:12px">￥</span>329</div>
                            </div>
                        </div>
                        <div class="swiper-slide sl2">
                            <div class="floor1">
                                <a href="#" class="a1"><img src="img/green4.jpg " alt="" style="width:190px;"></a>
                                <p style="font-size: 13px;margin-top:15px;"><a href="#" style="color:#000;">绿茶精萃保湿身体乳液
                                    </a></p>
                                <div class="price"><span style="font-size:12px">￥</span>19</div>
                            </div>
                        </div>
                        <div class="swiper-slide sl2">
                            <div class="floor1">
                                <a href="#" class="a1"><img src="img/green5.png" alt="" style="width:190px;"></a>
                                <p style="font-size: 13px;margin-top:15px;"><a href="#" style="color:#000;">绿茶精萃保湿沐浴露
                                    </a></p>
                                <div class="price"><span style="font-size:12px">￥</span>89</div>
                            </div>
                        </div>
                        <div class="swiper-slide sl2">
                            <div class="floor1">
                                <a href="#" class="a1"><img src="img/green6.png" alt="" style="width:190px;"></a>
                                <p style="font-size: 13px;margin-top:15px;"><a href="#"
                                        style="color:#000;">绿茶精萃舒缓保湿晚安水凝膜
                                    </a></p>
                                <div class="price"><span style="font-size:12px">￥</span>99</div>
                            </div>
                        </div>
                    </div>
                    <!-- Add Pagination -->
                    <div class="swiper-pagination"></div>
                </div>
            </div>
            <span><img src="img/greentea.jpg" alt="" style="box-shadow:1px 1px 5px gray;"></span>
        </div>
    </div>
    <!-- footer -->
    <footer>
        <div class="w">
            <div class="box">
                <div class="footer_1">
                    <div class="qqq">
                        <img src="./footer.images/logo_white_56c6462.png" alt="">
                    </div>

                    <div class="footer_1_f1">
                        <a href="#"><img src="./footer.images/weibo_74219f1.png" alt=""></a>
                        <a href="#"><img src="./footer.images/1.png" alt=""></a>
                        <img src="./footer.images/2.png" alt="">
                        <div>
                            <p>专卖店导航</p>
                            <p>探店指南</p>
                        </div>
                    </div>
                    <div class="code">
                        <div class="code_left">
                            <img src="./footer.images/copyright_d57b29a.png" alt="">
                        </div>
                        <div class="code_right">
                            <!-- <img src="./footer.images/K]QGNZA1${9~%SOF[8SC)H4.png" alt=""> -->
                            <p style="width:300px;padding-left: 10px;">copyright@2011 amorerepacific corporation.</p>
                            <p style="padding-left: 10px;">All rights reserved</p>
                        </div>

                    </div>
                </div>

                <div class="footer_2">
                    <div class="footer_2_top">

                    </div>
                    <div class="footer_2_bottom">
                        <figure style="text-align:center;margin-left:15px;"><img src="./footer.images/q1.png" alt=""
                                style="width: 72px;height:72px;padding-left: 8px;">
                            <p>Innisfree公众号</p>
                        </figure>
                        <figure style="text-align:center;margin-left:20px"><img src="./footer.images/q2.png" alt="">
                            <p>Innisfree商城小程序</p>
                        </figure>
                    </div>

                </div>

                <div class="footer_3">
                    <div class="lianxi">联系我们</div>
                    <p>服务热线：400-920-9238</p>
                    <p>服务时间：09:00-21:00 （不含国定假日）</p>
                    <p>客服邮箱：innisfree@innisfree.cn</p>

                    <p style="padding-top:30px;"><a href="#"><img src="./footer.images/gongan_caf441d.png" alt=""
                                style="padding-right: 20px;"></a> <span>公网安备312102451578</span></p>

                </div>

                <div class="footer_4">
                    <ul>
                        <a href="#">
                            <li id="huiyuan">会员中心</li>
                        </a>
                        <a href="#">
                            <li style="font-size:12px;">加入会员</li>
                        </a>
                        <a href="#">
                            <li style="font-size:12px;">会员制度</li>
                        </a>
                        <a href="#">
                            <li style="font-size:12px;">我的主页</li>
                        </a>
                    </ul>
                </div>

                <div class="footer_5">
                    <ul>
                        <a href="#">
                            <li id="huiyuan">客服中心</li>
                        </a>
                        <a href="#">
                            <li style="font-size:12px;">公告板</li>
                        </a>
                        <a href="#">
                            <li style="font-size:12px;">使用说明</li>
                        </a>
                        <a href="#">
                            <li style="font-size:12px;">FAQ</li>
                        </a>
                    </ul>
                </div>
            </div>
        </div>
    </footer>

</body>

</html>
<script src="js/jquery.min.js"></script>
<script src="css/swiper-bundle.min.js"></script>
<!-- swiper1 -->
<script>
    var mySwiper = new Swiper('.s1', {
        direction: 'horizontal', // 垂直切换选项
        loop: true, // 循环模式选项
        autoplay: true,

        // 如果需要分页器
        pagination: {
            el: '.swiper-pagination',
        },
        // 如果需要前进后退按钮
        navigation: {
            nextEl: '.swiper-button-next',
            prevEl: '.swiper-button-prev',
        },
    })
    //swiper2
    var swiper = new Swiper('.s2', {
        slidesPerView: 3,
        spaceBetween: 30,
        slidesPerGroup: 3,
        autoplay: true,
        loop: true,
        loopFillGroupWithBlank: true,
        // pagination: {
        //     el: '.swiper-pagination',
        //     clickable: true,
        // },
        navigation: {
            nextEl: '.swiper-button-next',
            prevEl: '.swiper-button-prev',
        },
    });
</script>
<script>
    $(".login").hover(function () {
        $(".down").stop().slideToggle(300);
    })
    $(".txt1").on("focus", function () {
        $(".box1").show();
    })
    $(".txt1").on("blur", function () {
        $(".box1").hide();
    })
    window.addEventListener("scroll", () => {
        let header = document.querySelector("header");
        header.classList.toggle("sticky", window.scrollY > 0);
    })
    //    -----------
    $("li").on("mouseenter", function () {
        $(this).find("menu").show().siblings("li").hide()
    })

    $("menu").on("mouseleave", function () {
        $(this).hide();
    })
    $("li").on("mouseleave", function () {
        $(this).find("menu").hide()
    })
    //    ---------
    $("li").on("mouseenter", function () {
        $(this).find(".menu1").show().siblings("li").hide()
    })

    $(".menu1").on("mouseleave", function () {
        $(this).hide();
    })
    $("li").on("mouseleave", function () {
        $(this).find(".menu1").hide()
    })
    //  ----------
    $("li").on("mouseenter", function () {
        $(this).find(".menu2").show().siblings("li").hide()
    })

    $(".menu2").on("mouseleave", function () {
        $(this).hide();
    })
    $("li").on("mouseleave", function () {
        $(this).find(".menu2").hide()
    })

    $(window).on("scroll", function () {
        if ($(window).scrollTop() > 250) {
            $("#backtop").fadeIn(1000)
        } else {
            $("#backtop").fadeOut(1000)
        }
    })
    $("#backtop").on("click", function () {
        $("html,body").animate({
            scrollTop: 0
        }, 1000)
    })
</script>
<!--  -->
<script>
    $(function () {
        getData();
        getList()

    })
    function getData() {

        $.get('./goodsAndShoppingCart/getGoodsType.php', function (data) {
            let str = ''
            JSON.parse(data).forEach((item, index) => {
                $('.box1>span').eq(index).html(`<a href='javascript:;'>${item.goodsType}></a>`)
            })
        })


    }
    function getList() {
        $.get('./goodsAndShoppingCart/getGoodsList.php', { 'typeId': '001' }, function (data) {
            console.log(JSON.parse(data));
            let arr = JSON.parse(data);
            let str = ''
            arr.forEach((item, index) => {
                str += `<a href="./typepage.html">${item.goodsName}/</a>`
            })
            $('.box1>p').html(str)
        })
    
    }


    





</script>